﻿@model ESN.Models.CustomProfile

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    @if (ViewBag.Updated != null)
    {
    <script type="text/javascript">
        window.opener.document.getElementById("avatar").setAttribute("src", "@Model.Avatar");
        window.close();
    </script>
    }
</head>
<body>
    <table>
        <tr>
            <td><img src="@Model.Avatar" width="120" height="150" alt="*" /></td>
            <td>
                <form method="post" action="" enctype="multipart/form-data">
                    <input type="hidden" name="UserId" value="@Model.UserId" />
                    <input type="file" name="file" id="file" />
                    <br />
                    <input type="submit" />
                </form>
            </td>
        </tr>
    </table>
</body>
</html>
